package com.ty.day1;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/22 15:47
 */
public class Five {
    public static void main(String[] args) {
        String[] x = {"垂帘画阁画帘垂","谁系怀思怀系谁",
                "影弄花枝花弄影1","丝牵柳线柳牵丝",
                "脸波横泪横波脸","眉黛浓愁浓黛眉1",
                "永夜寒灯寒夜永1","期归梦还梦归期"};
        for (int i = 0; i < x.length; i++) {
            int length = x[i].length(),flag=1;
            for (int j = 0; j < length/2; j++) {
                if (x[i].charAt(j)!=x[i].charAt(length-1-j)){
                    flag=0;
                    break;
                }
            }
            if (flag==1){
                System.out.println(x[i]);
            }
        }
    }
}
